package com.lanou.hotel.service;

import com.lanou.hotel.entity.Home;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lanou.hotel.vo.ResultVO;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author msy
 * @since 2023-10-28
 */
public interface IHomeService extends IService<Home> {

    void updateHome(Home home) throws Exception;

    ResultVO<Map<String, Object>> getHome(Integer pageNum, Integer pageSize, String typeName);

    void saveHome(Home home);

    void removeByIdAndRemoveImages(String homeId);

    Home getOneByNum(Integer num);
}
